import { sendRequest } from '@/http';

const baseUrl = '/admin/staff';

/* 查询员工排班 */
export const queryAllStaffArrange = (branchId: string, weekPage: number) =>
  sendRequest({
    url: `${baseUrl}/queryAllStaffArrange`,
    method: 'get',
    params: { branchId, weekPage },
  });

/* 修改指定员工排班 */
export const editStaffArrange = (data: any) =>
  sendRequest({
    url: `${baseUrl}/editStaffArrange`,
    method: 'post',
    data,
  });
